#include "main.h"
#include "rtthread.h"
#include "usart.h"
extern void NVIC_Init();

void task0(void *arg)
{
	(void)arg;
	while (1)
	{
		printf_("task0 run.\r\n");
	}
}

void task1(void *arg)
{
	(void)arg;
	while (1)
	{
		printf_("task1 run.\r\n");
	}
}

void rtos_init()
{
	rt_kprintf("rt-thread v5.2.1\r\n");
	while (1)
	{
		printf_("task1 run %d.\r\n",index1);
		rt_thread_mdelay(5000);
	}
}
